package com.sandy.gorm7

import grails.gorm.annotation.Entity
import groovy.transform.ToString

@ToString
@Entity
class Vehicle {
    String name
    Integer year
    static belongsTo = [manufacturer: Manufacturer]

    static constraints = {
        name nullable: false, blank: false
    }
}
